package net.onecloud.onecloud.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import net.onecloud.onecloud.R;
import net.onecloud.onecloud.model.ResultEmploy;

import java.util.List;

/**
 * Created by zaizai on 16/7/27.
 */
public class EmployAdapter extends BaseQuickAdapter<ResultEmploy.DataEntity> {
    public EmployAdapter() {
        super(R.layout.rv_items_employ, null);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, ResultEmploy.DataEntity dataEntity) {
        baseViewHolder.setText(R.id.m_title, dataEntity.getTitle())
                .setText(R.id.m_campany, dataEntity.getCampany())
                .setText(R.id.m_date, "发布日期:  " + dataEntity.getPdate())
                .itemView.setTag(dataEntity);

    }
}
